package com.gs.SynAntiWandering.adapter;

import android.content.Context;

import com.gs.SynAntiWandering.R;
import com.gs.SynAntiWandering.adapter.base.BaseAdapter;
import com.gs.SynAntiWandering.adapter.base.BaseViewHolder;
import com.gs.SynAntiWandering.db.dto.InsightAlertDto;

import java.util.List;

public class InsightAdapter extends BaseAdapter<InsightAlertDto> {

    public InsightAdapter(Context context, List<InsightAlertDto> mDatas, int layoutId) {
        super(context, mDatas, layoutId);
    }

    @Override
    public void convert(BaseViewHolder holder, InsightAlertDto item, int position) {
        holder.setInsight(R.id.view_in,item.getQty(),item.getName(),position,onItemChildrenClickListener);
    }
}
